package com.ruoyi.system.domain.sz;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 个人信息-家庭成员对象 sz_personal_family
 * 
 * @author ruoyi
 * @date 2024-03-14
 */
public class SzPersonalFamily extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 家庭ID */
    private Long familyId;

    /** 个人ID */
    @Excel(name = "个人ID")
    private Long personalId;

    /** 关系 */
    @Excel(name = "关系")
    private String relationship;

    /** 家庭成员名称 */
    @Excel(name = "家庭成员名称")
    private String familyName;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 政治面貌 */
    @Excel(name = "政治面貌")
    private String politicalStatus;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String workplace;

    /** 职务 */
    @Excel(name = "职务")
    private String position;

    /** 通信地址 */
    @Excel(name = "通信地址")
    private String address;

    /** 家庭类型（0家庭 1代表社会） */
    private String familyType;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    public String getFamilyType() {
        return familyType;
    }

    public void setFamilyType(String familyType) {
        this.familyType = familyType;
    }

    public void setFamilyId(Long familyId)
    {
        this.familyId = familyId;
    }

    public Long getFamilyId() 
    {
        return familyId;
    }
    public void setPersonalId(Long personalId) 
    {
        this.personalId = personalId;
    }

    public Long getPersonalId() 
    {
        return personalId;
    }
    public void setRelationship(String relationship) 
    {
        this.relationship = relationship;
    }

    public String getRelationship() 
    {
        return relationship;
    }
    public void setFamilyName(String familyName) 
    {
        this.familyName = familyName;
    }

    public String getFamilyName() 
    {
        return familyName;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setPoliticalStatus(String politicalStatus) 
    {
        this.politicalStatus = politicalStatus;
    }

    public String getPoliticalStatus() 
    {
        return politicalStatus;
    }
    public void setWorkplace(String workplace) 
    {
        this.workplace = workplace;
    }

    public String getWorkplace() 
    {
        return workplace;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("familyId", getFamilyId())
            .append("personalId", getPersonalId())
            .append("relationship", getRelationship())
            .append("familyName", getFamilyName())
            .append("birthday", getBirthday())
            .append("politicalStatus", getPoliticalStatus())
            .append("workplace", getWorkplace())
            .append("position", getPosition())
            .append("address", getAddress())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
